// @ts-nocheck
// 字符串转为元组类型

export type StringToTuple<T, F extends any[] = []> = T extends `${infer L}${infer R}`? StringToTuple<R, [...F, L]>: F;

type A = StringToTuple<"BEF.dev"> // ['B', 'E', 'F', '.','d','e','v']
type B = StringToTuple<"">

export {};